package work4;

public class Demo {
	public static void main(String[] args) {
		FizzBuzz fizzBuzz = new FizzBuzz(20);
		
		Thread t1 = new Thread(()->fizzBuzz.fizz());
		Thread t2 = new Thread(()->fizzBuzz.buzz());
		Thread t3 = new Thread(()->fizzBuzz.fizzbuzz());
		Thread t4 = new Thread(()->fizzBuzz.number());
		
		t1.start();
		t2.start();
		t3.start();
		t4.start();
	}
}
